<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../back-common.jsp"%>
<%@ include file="/WEB-INF/pages/common/taglib.jsp"%>

<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>

   <script type='text/javascript' src="<ls:templateResource item='/resources/common/js/jquery.validate.js'/>" /></script>
  <link rel="stylesheet" type="text/css" media="screen" href="<ls:templateResource item='/resources/common/css/errorform.css'/>" />
<%--  <style type="text/css" media="all">--%>
<%--    @import url(<ls:templateResource item='/resources/common/css/screen.css'/>);--%>
<%--  </style>--%>
  <script language="javascript">
		    $.validator.setDefaults({
		    });

    $(document).ready(function() {
    jQuery("#form1").validate({
            rules: {
            banner: {
                required: true,
                minlength: 5
            },
            url: "required"
        },
        messages: {
            banner: {
                required: "Please enter banner",
                minlength: "banner must consist of at least 5 characters"
            },
            url: {
                required: "Please provide a password"
            }
        }
    });
 
      $("#col1 tr").each(function(i){
      if(i>0){
         if(i%2 == 0){
             $(this).addClass('even');
         }else{    
              $(this).addClass('odd'); 
         }   
    }
     });   
         $("#col1 th").addClass('sortable'); 
});
</script>

		<table class="${tableclass}" style="width: 100%">
		    <thead>
		   		<tr><th> <strong class="am-text-primary am-text-lg">商城管理</strong> /  系统日志编辑</th></tr>
		    </thead>
		 </table>

        <form:form  action="${contextPath}/admin/event/save" method="post" id="form1">
            <input id="eventId" name="eventId" value="${event.eventId}" type="hidden">
            <table  align="center" class="${tableclass}" id="col1" style="width:100%">

     	<tr>
        <td>
        <div> 操作人：${event.modifyUser}，用户姓名：${event.userName}，对象：${event.type}，类型 ：${event.operation }， 时间：<fmt:formatDate value="${event.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/> </div>
          <div>
          <textarea style="width:100%; height:380px">${event.relateData}</textarea>
          </div>
       </td>
      </tr>    
       <tr>
                    <td>
                        <div align="center">
                            <input type="button" value="返回" class="${btnclass}"
                                onclick="window.location='<ls:url address="/admin/event/query"/>'" />
                        </div>
                    </td>
                </tr>
            </table>
        </form:form>



